package com.xingkong.app;

import java.util.Map.Entry;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.util.Tool;
import org.apache.hadoop.util.ToolRunner;

public class DynamicConfigurationPrinter{
	public static void main(String[] args) throws Exception{
		Configuration conf=new Configuration();
//		conf.addResource("core-site.xml");
//		conf.addResource("hdfs-site.xml");
//		conf.addResource("mapred-site.xml");
//		conf.addResource("yarn-site.xml");
		for(Entry<String,String> entry:conf){
			System.out.printf("%s=%s\n", entry.getKey(),entry.getValue());
		}
	}
	

}
